package demo1;

public class Fruit {
    public String name;

    public Fruit(String name) {
        this.name = name;
    }
    public void eat(){
        System.out.println("正在吃"+this.name);
    }
}
